package com.irain.pp.tool.aop.sync.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 分布式锁
 * @author WangYanPeng
 * @date 2017/11/3 14:55
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SyncLock {

    String[] value() default {};

    long expire() default 10000L;

    long timeout() default 0L;

    boolean isMonitored() default false;
}
